home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / prog / pbc22b.zip / PBC$BAS.ZIP / VERTPRIN.BAS < prev    next >
BASIC Source File  |  1993-04-25  |  837b  |  26 lines

  1. '   +----------------------------------------------------------------------+
  2. '   |                                                                      |
  3. '   |        PBClone  Copyright (c) 1990-1993  Thomas G. Hanlin III        |
  4. '   |                                                                      |
  5. '   +----------------------------------------------------------------------+
  6.  
  7.    DECLARE SUB CursorInfo (Visible%, StartLine%, EndLine%, MaxLine%)
  8.  
  9. SUB VerticalPrint (St$)
  10.    Row% = CSRLIN
  11.    Col% = POS(0)
  12.    CursorInfo Visible%, StartLine%, EndLine%, MaxLine%
  13.    IF Visible% THEN LOCATE Row%, Col%, 0
  14.  
  15.    FOR tmp% = 1 TO LEN(St$)
  16.       LOCATE Row% + tmp% - 1, Col%
  17.       PRINT MID$(St$, tmp%, 1);
  18.    NEXT
  19.  
  20.    IF Visible% THEN
  21.       LOCATE Row%, Col%, 1
  22.    ELSE
  23.       LOCATE Row%, Col%
  24.    END IF
  25. END SUB
  26.